---
title: timeGridWeek and timeGridDay views
layout: demo-v4
plugins: [ daygrid, timegrid ]
---
<script>

  document.addEventListener('DOMContentLoaded', function() {
    var calendarEl = document.getElementById('calendar');

    var calendar = new FullCalendar.Calendar(calendarEl, {
      plugins: [ 'timeGrid' ],
      timeZone: 'UTC',
      defaultView: 'timeGridWeek',
      header: {
        left: 'prev,next today',
        center: 'title',
        right: 'timeGridWeek,timeGridDay'
      },
      events: '{{ site.data.demo_feed_baseurl }}/demo-events.json'
    });

    calendar.render();
  });

</script>
